def hello():
    print('hello world')


def max(a, b):
    if (a > b):
        return a
    return b


def change(a):
    print(id(a))
    a = 10
    print("modifed:", id(a))
    return a


def change2(mylist):
    print(id(mylist))
    mylist.append([1, 2, 3])
    print("函数内取值:", mylist)
    return mylist


def printme(str):
    print(str)
    return str


def printinfo(name, age=12):
    print("name=", name, "age=", age)
    return


def mutiparams(arg1, *tup):
    print(arg1)
    print(tup)
    return


def mutiparams3(arg1, **var_dict):
    print(arg1)
    print(var_dict)
    return


def mutiparams2(a, b, *, c):
    return a + b + c


def sum(a, b):
    return lambda a, b: a + b


mutiparams3('个人信息', name='Amy', age=12, addr='ssdsdsds')
# sum = lambda a, b: a + b
# print(sum(10, 2))
# print(mutiparams2(1, 2, 'ddd', c=3))

# mutiparams('Ammy', 12, '123路', False)
# printinfo(age=12, name="张安")
# printinfo(12, 'vhsnss')
# printinfo('詹桑')
# printme('busty')
# print(max(4, 3))
# hello()
# print("changed:", id(change(5)))

# var_list = [12, 33]
# print('rerun值:', change2(var_list))